<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.sql.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="taglibs.jsp" %>
<style type="text/css">
#errTab {
    border:2px groove #CCC;
    width:80%
}
#errTab td div{
    border:0px;
    color: red;
}

.messagebox {
    width:80%;
    white-space:normal;
    font-size:12px;
    color:red;
    border:0px groove #CCC;
}
</style>
</head>
<body>
<div id="content"><div id="content_inner">
<center><h3>出现错误</h3></center>
<table border="0" cellspacing="0" id="errTab">
  <tr>
    <td width="70">&nbsp;</td>
  <td><table border=0 cellpadding=10 cellspacing="0"  class="messagebox">
    <tr>
      <td height="197">
          <p><nobr>请纠正如下错误:</nobr></p>
          <ul>
            <div>
            <c:choose>
            <c:when test="${empty errormsg}">
            Unknown error happened!
            </c:when>
            <c:otherwise>
            ${errormsg}
            </c:otherwise>
            </c:choose>
            </div>
<div style="overflow:auto;width:640px">
<%
Exception e = (Exception)request.getAttribute("exception");
if(e!=null)
e.printStackTrace(new java.io.PrintWriter(out));
%>
</div>
          <table width="494" height="20" border="0">
            <tr align="right">
              <td >
 
                <a href="#" onclick="javascript:history.back()'">返回</a> </td>
            </tr>
        </table></td>
    </tr>
  </table></td>
  </tr>
</table>

</div></div></body>
